package com.example.demo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuzhongbiao
 * @since 2017-06-16
 */
@TableName("d19_product")
public class Product extends Model<Product> {

    private static final long serialVersionUID = 1L;

	@TableId(value="pid", type= IdType.AUTO)
	private Integer pid;
	private String pname;
	@TableField("type_id")
	private Integer typeId;
	@TableField("in_date")
	private Date inDate;


	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public Date getInDate() {
		return inDate;
	}

	public void setInDate(Date inDate) {
		this.inDate = inDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.pid;
	}

}
